package com.truba.ohostouchgallery.TouchView;

import Adapter.AsyncTask;

import ohos.media.image.PixelMap;
import org.junit.Test;

import static org.junit.Assert.*;

public class FileTouchImageViewTest {

    private final String imagePath = "https://upfile-drcn.platform.hicloud.com/FileServe…FWEBcYa7-c3XtL85iV28wgyPmkFFoZzM2WxQzlBdES0Qw.jpg";

    @Test
    public void setUrl() {
        new ImageLoadTask().execute(imagePath);
    }

    public class ImageLoadTask extends AsyncTask<String, Integer, PixelMap> {
        @Override
        protected PixelMap doInBackground(String... strings) {
            assertEquals(imagePath, strings[0]);
            return null;
        }
    }
}